package com.megvii.koala.tv.video;

import android.view.SurfaceView;
import android.view.Window;

/**
 * Created by linyue on 16/3/14.
 */
public interface VideoManagerInterface
{
    public boolean init(final Window window, final SurfaceView surfaceView);

    public void release();

    public void restartPlay();

    public void play(String url);

    public void clearSrc();

    public void stop();

    public void setSize(int width, int height);

    public int getVideoCurrentTime();

    public int getVideoDuration();

    public void setListener(VideoManagerListener listener);
}
